dsh-usage-meter: A Token Usage Statistics Plugin for DSH Web Client

dsh-usage-meter is an MIT-licensed plugin maintained by cute-baobao, specifically designed for the Web platform DSH client to visually display the token usage of model calls. The plugin automatically records usage data to a local JSONL file and aggregates it by the "model × hour" dimension upon startup. Users can clearly view the token consumption per hour for each model through stacked bar charts color-coded by model in the Web GUI settings page. The interface supports both Chinese and English, automatically following the language switching of the GUI. Installation requires using the pnpm command to add the plugin package, followed by restarting the DSH Web process to take effect. Data is stored by default in `$DSH_HOME/usage-meter/usage.jsonl`. This plugin is suitable for those who want to view usage by

Read More